package com.example.mapper;


import cn.hutool.json.JSONObject;
import com.example.entity.*;
import com.example.entity.Class;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {

    User selectByUsername(String account);

    List<User> getUserList(User user);

    List<Test> getTestList(Test test);

    List<Question> getUqcByTestid(int tid);

    List<Question> getUqfByTestid(int tid);

    List<Question> getUqsByTestid(int tid);

    void deleteTest(Test_User testUser);

    void deleteTestUser(Test_User testUser);

    List<Integer> getQIdByTId(Test_User testUser);

    void deleteStuQuestion(@Param("qidList")List<Integer> qidList);
    void deleteTeaQuestion(@Param("qidList")List<Integer> qidList);
    void deleteParQuestion(@Param("qidList")List<Integer> qidList);

    void deleteQestion(List<Integer> qidList);

    List<JSONObject> getAnalysisStudent(User user);

    void deleteAnalysisStudent(Analysis_Student analysisStudent);

    List<JSONObject> getAnalysisCalss(Class c);

    void deleteAnalysisClass(Analysis_Teacher analysisTeacher);

    boolean register(User user);

    User getUser(User user);

    void resetPassword(User user);
}
